package com.letfox.ad.service.relation.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.ad.dao.relation.ADServingRlMaterialDao;
import com.letfox.ad.model.relation.ADServingRlMaterial;
import com.letfox.ad.service.relation.ADServingRlMaterialService;

@Service
public class ADServingRlMaterialServiceImpl implements
		ADServingRlMaterialService {
	
	@Autowired
	private ADServingRlMaterialDao adServingRlMaterialDao;
	
	@Override
	public int deleteByPrimaryKey(Long id) {
		return adServingRlMaterialDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ADServingRlMaterial record) {
		return adServingRlMaterialDao.insert(record);
	}

	@Override
	public ADServingRlMaterial selectByPrimaryKey(Long id) {
		return adServingRlMaterialDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKey(ADServingRlMaterial record) {
		return adServingRlMaterialDao.updateByPrimaryKey(record);
	}

}
